package com.felight;

public class thread {
	
	public static void main(String[] Felight){
	C cThread1 = new C();
	cThread1.setName("good");
	C cThread2 = new C();
	cThread2.setName("bad");
	C cThread3 = new C();
	cThread3.setName("ugly");
	
	D dThread1 = new D();
	Thread t1 = new Thread(dThread1);
	t1.setName("tom");
	D dThread2 = new D();
	Thread t2 = new Thread(dThread2);
	t1.setName("dick");
	D dThread3 = new D();
	Thread t3 = new Thread(dThread3);
	t1.setName("harry");
	
	cThread1.start();
	cThread2.start();
	cThread3.start();
	
	t1.start();
	t2.start();
	t3.start();
	
	
	

}
}